﻿using BCCommon;
using BCDto.Sim.Admin.Admin;
using BCDto.TMS.Order.OrderAssignRecord;

namespace BCService.TMS.Order.OrderAssignRecord
{
    /// <summary>
    /// 订单指派纪录
    /// </summary>
    public interface IOrderAssignRecordService
    { 
        /// <summary>
        /// 修改订单指派记录
        /// </summary>
        /// <param name="orderAssignRecordDto">订单指派纪录</param>
        /// <returns></returns>
        OrderAssignRecordDto Update(OrderAssignRecordDto orderAssignRecordDto);

        /// <summary>
        /// 删除订单指派记录
        /// </summary>
        /// <param name="orderAssignRecordId">订单指派纪录Id</param>
        /// <returns></returns>
        int Delete(long orderAssignRecordId);

        /// <summary>
        /// 获取订单指派记录
        /// </summary>
        /// <param name="orderAssignRecordId">订单指派纪录Id</param>
        /// <returns></returns>
        OrderAssignRecordDto GetByOrderAssignRecordId(long orderAssignRecordId);

        /// <summary>
        /// 查询订单指派
        /// </summary>
        /// <param name="adminDto">管理员信息</param>
        /// <param name="orderId">订单ID</param>
        /// <param name="pageIndex">分页页码</param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        PageableList<OrderAssignRecordDto> GetList(AdminDto adminDto, long? orderId, int pageIndex, int pageSize);
    }
}
